package com.ys.web.entity;
// Generated 2017-3-7 9:21:28 by Hibernate Tools 4.0.0

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 代运营公司
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "company", catalog = "ysanalyze")
public class Company implements java.io.Serializable {

	private Integer id;
	/**所属行业id*/
	private String industryId;
	/**所属sem用户id*/
	private Integer userId;
	/**注册时间*/
	private Date registerTime;
	/**代运营公司名称*/
	private String companyName;
	/**代运营公司电话*/
	private String phone;
	/**电子邮件*/
	private String email;
	/**公司地址*/
	private String address;
	/**邮编*/
	private String postcard;
	/**代运营公司状态
	 * “1”:有效
	 * “0”:无效
	 * */
	private String companyState;
	
	/**
	 * 是否已经同步到易数宝
	 * 已经同步 1
	 * 未同步 0
	 */
	private String isSynchronizedToYsb;

	public Company() {
	}

	public Company(String industryId, Integer userId, Date registerTime, String companyName, 
				String companyState, String phone, String email, String address, String postcard) {
		this.industryId = industryId;
		this.userId = userId;
		this.registerTime = registerTime;
		this.companyName = companyName;
		this.companyState = companyState;
		this.phone = phone;
		this.email = email;
		this.address = address;
		this.postcard = postcard;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "industry_id", nullable = false, length = 50 )
	public String getIndustryId() {
		return this.industryId;
	}

	public void setIndustryId(String industryId) {
		this.industryId = industryId;
	}

	@Column(name = "user_id", nullable = false)
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Temporal(TemporalType.TIMESTAMP) 
	@Column(name = "register_time", nullable = false, length = 19)
	public Date getRegisterTime() {
		return this.registerTime;
	}

	public void setRegisterTime(Date registerTime) {
		this.registerTime = registerTime;
	}

	@Column(name = "company_name", nullable = false, length = 100)
	public String getCompanyName() {
		return this.companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	//nullable = false,
	@Column(name = "company_state", length = 50)
	public String getCompanyState() {
		return this.companyState;
	}

	public void setCompanyState(String companyState) {
		this.companyState = companyState;
	}

	@Column(name = "phone", length = 255)
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Column(name = "email", length = 255)
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "address", length = 255)
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Column(name = "postcard", length = 255)
	public String getPostcard() {
		return postcard;
	}

	public void setPostcard(String postcard) {
		this.postcard = postcard;
	}

	/**
	 * @return the isSynchronizedToYsb
	 */
	@Column(name="is_synchronized_to_ysb")
	public String getIsSynchronizedToYsb() {
		return isSynchronizedToYsb;
	}

	/**
	 * @param isSynchronizedToYsb the isSynchronizedToYsb to set
	 */
	public void setIsSynchronizedToYsb(String isSynchronizedToYsb) {
		this.isSynchronizedToYsb = isSynchronizedToYsb;
	}

}
